<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>新建模型 - 模型管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
	function openNewWindow(field1) {
		var btn =  document.getElementById("btn1");
		var iTop = (window.screen.availHeight - 30 - 600) / 2; 
           //获得窗口的水平位置 
        var iLeft = (window.screen.availWidth - 10 - 800) / 2; 
		var str = window.open(field1,'','width=800,height=600,left='+iLeft+',top='+iTop);
		
		
	}
		function page(n,s){
        	location = '${ctx}/act/model/?pageNo='+n+'&pageSize='+s;
        }
		function upload(){
			document.getElementById("inputform").submit();
		}
		</script>
	<style type="text/css">
		.getMargin{
				margin:0 auto;
		}
	</style>
</head>
<body>
<ul class="nav nav-tabs">
		<li><a href="${ctx}/fee/feelist">物业费列表</a></li>
		<li class="active"><a href="${ctx}/fee/addFee">物业费添加</a></li>
	</ul>
	
	<form:form id="inputForm" modelAttribute="fee" action="${ctx}/fee/save" method="post" class="form-horizontal">
		<div class="control-group">
			<label class="control-label">楼号:</label>
			<div class="controls">
				<%-- <form:input path="room.buildingId" htmlEscape="false" maxlength="100"/> --%>
				<form:select path="building.id" class="required">
				<c:forEach items="${buildingName}" var="a">
				<form:option value="${a.id }">${a.buildingName }</form:option>
				</c:forEach>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">物业费用:</label>
			<div class="controls">
				<form:input path="price" htmlEscape="false" maxlength="50" class="required"/>

				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">房间:</label>
			<div class="controls">
				<input onclick="openNewWindow('${ctx}/fee/roomList')" type="button" value="请选择对应房间"/><span><font color=red>请谨慎操作</font></span>
				 <div class="controls" id="teacher"  class="required"></div>			 


			</div>

			<form:hidden path="roomIds" id="teacherids" name="teacherids"/>
				
			</div>
		</div>
		
		<div class="control-group">
			<div class="controls">
				<form:input path="" type="submit" value="提交" />
			</div>
		</div>
		</form:form>
</body>
</html>
